//
//  ViewController.swift
//  ArithmeticWithSwift
//
//  Created by 神州锐达 on 2018/9/26.
//  Copyright © 2018年 onePiece. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        let my = MySort()
        var arr = [4,6,8,5,9]

        let nums = my.heapSort(&arr)

        print(nums ?? [])
        
    }

}

